import java.util.concurrent.locks.ReentrantLock;

/**
 * Creater with IntelliJ IDEA.
 * Description:
 * User: 86152
 * Dae: 2022-07-31
 * Time: 23:21
 */
public class demo3 {
    public static void main(String[] args) {
        ReentrantLock lock = new ReentrantLock(true);
        try {
            lock.lock();
        } finally {
            lock.unlock();
        }
    }
}
